package priv.yiyuan.example.design.control;

import priv.yiyuan.example.design.device.Device;

/**
 * 基础控制类
 * <p>
 * 桥接模式(扩展抽象部分)
 *
 * @author YiYuan
 * @data 2025/8/20
 * @apoNote
 */
public class BasicRemoteControl extends RemoteControl {

    public BasicRemoteControl(Device device) {
        super(device);
    }

    @Override
    public void powerOn() {
        System.out.println("---基础控制--- ");
        device.turnOn();
    }

    @Override
    public void powerOff() {
        System.out.println("---基础控制--- ");
        device.turnOff();
    }

    @Override
    public void adjustLevel(int level) {
        System.out.println("---基础控制--- ");
        device.adjust(level);
    }
}
